@import '~less/mixin.less';

.box {
  flex: 1;
  // display: flex;
  // flex-direction: column;

  .scrollable();

  :global {
    .am-pull-to-refresh {
      // display: flex;
      // flex-direction: column;
    }

    .am-pull-to-refresh-content-wrapper {
      // flex: 1;
      // display: flex;
      // flex-direction: column;
      overflow: visible;

      // .scrollable();
    }

    .am-pull-to-refresh-content {
      // flex: 1;
      // display: flex;
      // flex-direction: column;
    }

    .am-pull-to-refresh-indicator {
      flex-shrink: 0;
      height: 60px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: -60px;

      // + * {
      //   .scrollable();
      // }
    }
  }
}

.indicator {
  ：global {
    .ant-spin {
      font-size: 0;
    }
  }

  &-title {
    margin-top: 5px;
    font-size: 12px;
    color: #999;
    line-height: 1;
  }
}

.alert {
  background: #d7eaf8;
  color: #318fdb;
  text-align: center;
  font-size: 14px;
  height: 32px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;

  span {
    min-width: 0;

    .text-overflow();
  }

  &-fail {
    background: #ffebee;
    color: #ef5350;
  }
}
